package com.blog.mapper;


import com.blog.seckill.goods.Good;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodMapper {
    int deleteByPrimaryKey(Integer productSpuId);

    int insert(Good record);

    int insertSelective(Good record);

    Good selectByPrimaryKey(Integer productSpuId);

    int updateByPrimaryKeySelective(Good record);

    int updateByPrimaryKey(Good record);

    List<Good> selectAllGoods();

    int goodInventoryNumById(@Param("goodId") Integer goodId, @Param("num") Integer num);
}